//-----------------------------------------------------------------------
// <copyright file="a_eCard_LogService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_eCard_LogService
    {
        #region a_eCard_Log

        public static void Createa_eCard_Log(a_eCard_Log a_eCard_Log)
        {            
            try
            {
                a_eCard_LogDAO a_eCard_LogDAO = new a_eCard_LogDAO();
                a_eCard_LogDAO.Createa_eCard_Log(a_eCard_Log);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_eCard_Log(a_eCard_Log a_eCard_Log)
        {            
            try
            {
                a_eCard_LogDAO a_eCard_LogDAO = new a_eCard_LogDAO();
                a_eCard_LogDAO.Updatea_eCard_Log(a_eCard_Log);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_eCard_Log(int logID)
        {            
            try
            {
                a_eCard_LogDAO a_eCard_LogDAO = new a_eCard_LogDAO();
                a_eCard_LogDAO.Deletea_eCard_Log(logID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_eCard_Log Geta_eCard_Log(int logID)
        {            
            try
            {
                a_eCard_LogDAO a_eCard_LogDAO = new a_eCard_LogDAO();
                return a_eCard_LogDAO.Geta_eCard_Log(logID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_eCard_LogCollection Geta_eCard_LogList(a_eCard_LogColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_eCard_LogDAO a_eCard_LogDAO = new a_eCard_LogDAO();
                return a_eCard_LogDAO.Geta_eCard_LogList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_eCard_LogCollection Geta_eCard_LogList(a_eCard_LogColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_eCard_LogDAO a_eCard_LogDAO = new a_eCard_LogDAO();
                return a_eCard_LogDAO.Geta_eCard_LogList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}